package router

import (
	"api-gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	user := r.Group("/user")
	{
		user.POST("/register", api.UserRegister)
		user.POST("/login", api.UserLogin)
		user.POST("/send/sms", api.SendSms)
	}
	video := r.Group("/video")
	{
		video.POST("/file", api.FileUpload)
		video.POST("/add", api.VideoAdd)
	}
	return r
}
